package org.example.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.pojo.Brand;

import java.util.List;

/**
 * @author hzl
 * @create 2025-02-15 14:50
 */
@Mapper
public interface BrandMapper {
    // 查询所有信息
    public List<Brand> selectAll();

    // 根据id查询
    Brand selectById(int id);

    List<Brand> selectByCondition(@Param("status") int status,
                                  @Param("companyName") String companyName,
                                  @Param("brandName") String brandName);

    /**
     * 添加
     */
    void add(Brand brand);

}
